package com.lz.views;


import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.yinhai.activity.R;


public class LoadingDialog extends Dialog {
	@SuppressWarnings("unused")
	private Context context;
	private String loadingText;
	
	private TextView tvContent;
	
	/**
	 * 构造函数
	 * @param context 上下文对象
	 * @param loadingText 提示内容
	 * */
	public LoadingDialog(Context context, String loadingText){
		super(context,R.style.Theme_dialog);
		this.context = context;
		this.loadingText = loadingText;
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.dialog_loading);
		
		tvContent = (TextView)findViewById(R.id.tvContent);
		tvContent.setText(loadingText);
	}
}
